package filters;

public abstract class AbstractColorFilter {

    int imageDescription[][];
    int width = 0;
    int height = 0;

    public AbstractColorFilter(int[][] imageDescription) {
        
        width = imageDescription.length;
        height = imageDescription[0].length;
        
        this.imageDescription = new int[width][height];
        
        for (int i=0;i<width;i++){
            for (int j=0;j<height;j++){
                this.imageDescription[i][j] = imageDescription[i][j];
            }
        }
    }

    abstract public void doFilted();
    
    public void setImageDescription(int[][] imageDescription) {
        this.imageDescription = imageDescription;
        doFilted();
    }

    public int[][] getImageDescription() {
        return imageDescription;
    }
}
